Skip to content

Upgrade Jackson 3.0.3 to 3.1.4#1057

Open
wjglerum wants to merge 1 commit into
modelcontextprotocol:mainfrom
wjglerum:upgrade-jackson3-314
Open

Upgrade Jackson 3.0.3 to 3.1.4#1057
wjglerum wants to merge 1 commit into
modelcontextprotocol:mainfrom
wjglerum:upgrade-jackson3-314

Conversation

@wjglerum

@wjglerum wjglerum commented Jul 6, 2026

Copy link
Copy Markdown

Motivation and Context

Upgrades jackson3.version from 3.0.3 to 3.1.4 and jackson-annotations.version from 2.20 to 2.21.

This aligns Jackson to the latest LTS and fixes security warnings, see https://mvnrepository.com/artifact/tools.jackson.core/jackson-databind

The annotations bump is required: Jackson databind 3.1's JacksonAnnotationIntrospector references @JsonSerializeAs, which was added in jackson-annotations 2.21. With 2.20 on the classpath, any Jackson 3 mapper fails at runtime with NoClassDefFoundError.

How Has This Been Tested?

Ran the existing test suite locally with ./mvnw -pl mcp-core -am test; all 339 tests pass.

Breaking Changes

No breaking changes. This is a dependency version bump only.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Jackson databind 3.1 requires jackson-annotations 2.21, which adds the
@JsonSerializeAs annotation referenced by JacksonAnnotationIntrospector.
@wjglerum wjglerum marked this pull request as ready for review July 6, 2026 11:40
@wjglerum wjglerum changed the title Upgrade Jackson 3 to 3.1.4 Upgrade Jackson 3.0.3 to 3.1.4 Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant